<?php
namespace app\h5api\controller;

use app\common\model\ProductsType as ProductsTypeModel;

class ProductsType extends Base
{
	/**
	 * @route('h5/GetTypeList')
	 * 分类列表
	 */
	public function GetTypeList()
	{
		$ProductsTypeModel = new ProductsTypeModel();
		$list = $ProductsTypeModel->get_tree('type_id,p_id,type_name',['is_del' => 1],'p_id asc,sort asc');

		$this->result($list,1,'成功');
	}
}
